
public class Auto implements IProduct {
	Body body;
	Chassis chassis;
	Engine engine;
	
		public Auto() {
	System.out.println("I created empty"); 
		}
		

		
public void installFirstPart(IProductPart productPart1){
	
	body=(Body) productPart1;
	System.out.println("Set body");
	
}

public void installSecondPart(IProductPart productPart2){
	chassis=(Chassis) productPart2;
	System.out.println("Set chasses");
}

public void installThirdPart(IProductPart productPart3){
	engine=(Engine) productPart3;
	System.out.println("Set engine");
			}
}


